//
//  YahooUser.h
//  HelloWorld
//
//  Created by Martin Le C. on 5/11/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "StatusConstants.h"

@interface YahooUser : NSObject {
	NSString *yahooId;						// Yahoo id
	NSInteger status;						// Status (away, etc). NSInteger?
	NSString *name;
	BOOL onChat;
	BOOL onPager;
	BOOL ignored;						// Flags
	NSString *customStatusMessage;		// Custom away
	BOOL customStatusBusy;				// Ditto
	@private NSInteger *groupCount;	
}
@property (nonatomic, assign) NSString *yahooId;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, assign) NSString* name;
@property (nonatomic, assign) BOOL onPager;
@property (nonatomic, assign) BOOL onChat;
@property (nonatomic, assign) BOOL ignored;
@property (nonatomic, assign) NSString *customStatusMessage;
@property (nonatomic, assign) BOOL customStatusBusy;
@property NSInteger *groupCount;
- (id) init:(NSString*)i st:(NSString*)st ch:(NSString*)ch pig:(NSString*)pig;
- (id) init:(NSString*)i st:(NSInteger)st ch:(BOOL)ch pg:(BOOL)pg;
- (id) init:(NSString*)i;
- (NSString *)toURIString;
-(void)setCustom:(NSString*)m a:(NSString*)a;
- (void) update:(NSString *)i st:(NSString *)st vs:(NSString *)vs;
-(void) update:(NSString*)i st:(NSString*)st ch:(NSString*)ch pig:(NSString*)pig;
- (void) update:(NSString*)i st:(NSInteger)st ch:(BOOL)ch pg:(BOOL)pg;
- (BOOL) isFriend;
-(void) adjustGroupCount:(NSInteger)inc;
@end
